<?

switch($extension){
	case "com" : $com="selected";break;
	case "net" : $net="selected";break;
	case "org" : $org="selected";break;
	case "biz" : $biz="selected";break;
	case "info" : $info="selected";break;
	case "us" : $us="selected";break;
	
}
if(!$radio_domain) $radio_domain='new';
?>

<td colspan=2>Domain:  </td>

<td>
	
	<table>
		<tr>
			<td><input type="radio" id='new' name='radio_domain'  value='new' onClick="check_sel(this);">
				Register new domain<br><input type="radio" id='existing' name='radio_domain' value='existing' onClick="check_sel(this);" >
				Use my existing domain
			</td>
			<td colspan="1" rowspan="2" wrap='no' border=0>
				<div id='uuu1'>
					<span class="text">www.</span>
					<input type="text" name='domain_new' value='<?=$domain_new;?>' size='10' class="form">
					<select name='extension' class="form">
						<option value=".com" <?=$com;?> >.com</option>
						<option value=".net" <?=$net;?>>.net</option>
						<option value=".org" <?=$org;?>>.org</option>
						<option value=".biz" <?=$biz;?>>.biz</option>
						<option value=".info" <?=$info;?>>.info</option>
						<option value=".us" <?=$us;?>>.us</option>
					</select>
				</div>
				<div id='uuu2'>
					<span class='text'>www.&nbsp;</span><input type=text name='domain_existing' value='<?=$domain_existing;?>'>			
				</div>
			</td>
		</tr>
	</table>
</td>

